package com.googlecode.tapestry5validator.hibernate.models;

import org.hibernate.validator.Max;

public class Submarine {

	@Max(10)
	private int height;
	
	@Max(value=11, message="Width must be less {value}")
	private int width;

	@Max(value=12, message="{submarine.gravity.max}")
	private int gravity;

	@Max(value=13, message="Overriden in view")
	private int cost;

	@Max(value=14, message="{missing.key}")
	private int count;


	public void setHeight(int height) {
		this.height = height;
	}

	public int getHeight() {
		return height;
	}
	
	public void setWidth(int width) {
		this.width = width;
	}

	public int getWidth() {
		return width;
	}

	public void setGravity(int gravity) {
		this.gravity = gravity;
	}

	public int getGravity() {
		return gravity;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getCount() {
		return count;
	}

	public void setCost(int cost) {
		this.cost = cost;
	}

	public int getCost() {
		return cost;
	}
}
